<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>排序order</title>
</head>
<style>

.flex-container {
	display: -webkit-flex;
	display: flex;
	flex-direction: row;
	width: 400px;
	height: 250px;
	background-color: lightgrey;
}

.flex-item {
	background-color: cornflowerblue;
	width: 100px;
	height: 100px;
	margin: 10px;
}
.first {
	-webkit-order: -1;
	order: -1;
}
</style>
<body>

order 属性设置弹性容器内弹性子元素的属性:用整数值来定义排列顺序，数值小的排在前面。可以为负值。<br><br>

<div class="flex-container">
	<div class="flex-item">flex item 1</div>
	<div class="flex-item first">flex item 2</div>
	<div class="flex-item">flex item 3</div>
	
	<!-- <div class="flex-item">flex item 4</div>
	<div class="flex-item">flex item 5</div>
	<div class="flex-item">flex item 6</div>
	<div class="flex-item">flex item 7</div> -->
</div>

</body>
</html>
